package com.application.race.manage.player.effect.skill;

import com.application.race.manage.player.Player;
import com.application.race.manage.player.effect.Effect;
	public class JumpEffect extends Effect
	{
        // public int removeId;
		public int maxTime=2000;
         public JumpEffect(){
        	 this.effectType=EFFECT_TYPE_JUMP;
        	 this.startTime=System.currentTimeMillis();
        	 
         }
         public boolean update(Player p){
        	 p.onJump=true;
        	 if(System.currentTimeMillis()-startTime>maxTime){
        		 p.onJump=false;
        		 return false;
        	 }
        	 
        	 return true;
         }

	}
